/*************************************************************************
 *
 * $Id: menu.h 50 2006-07-09 18:25:19Z alpov $
 * 
 *************************************************************************/         

#ifndef _MENU_H
#define _MENU_H

#define MENU_REFRESH    -1
#define MENU_MESSAGE    -2

#define MENU_MAX_SHIFT  30

#ifndef _MENU_C
AVRX_EXT_FIFO(MenuFifo);
#endif

AVRX_EXTERNTASK(MenuTask);
extern void InitMenuTask(void);
extern void MenuMessage(unsigned char msg);

#define ST_MAIN             10
#define ST_SHIFT            20
#define ST_SHIFT_EDIT       21
#define ST_MODE             30
#define ST_MODE_EDIT        31
#define ST_RTC              40
#define ST_RTC_EDIT         41
#define ST_SWITCH           50
#define ST_SWITCH_EDIT_M    51
#define ST_SWITCH_EDIT_C    52
#define ST_CONFIG           100
#define ST_CONFIG_EDIT      101
#define ST_MESSAGE          200
#define ST_ERROR            255

#endif
